package www.sofn.com.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@AllArgsConstructor
@Schema(description = "分页结果")
@Accessors(chain = true)
public class PageRestVO<T>   {
    @Schema(description = "总页数")
    private Long pages; //总页数
    @Schema(description = "总条数")
    private Long total; //总条数
    @Schema(description = "当前页")
    private Long current;//当前页
    @Schema(description = "size")
    private Long size;//页大小
    @Schema(description = "数据")
    private List<T> content;//数据

}
